<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Caseno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-caseno" disabled class="form-control" name="row[caseno]" type="text" value="{$row.caseno|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yt" disabled class="form-control" name="row[yt]" type="text" value="{$row.yt|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Types')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-types" disabled class="form-control" name="row[types]" type="text" value="{$row.types|htmlentities}">
        </div>
    </div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Syd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-syd" disabled class="form-control" name="row[syd]" type="text" value="{$row.syd|htmlentities}">
        </div>
    </div>
	
	 <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fen')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fen" class="form-control" name="row[fen]" type="number" value="{$row.fen|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lqway')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lqway" disabled class="form-control" name="row[lqway]" type="text" value="{$row.lqway|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lqjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[lqjson]">
                <dd>
                   
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[lqjson]" class="form-control hide" cols="30" rows="5">{$row.lqjson|htmlentities}</textarea>
            </dl>


        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sqrjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[sqrjson]">
                <dd>
                    
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[sqrjson]" class="form-control hide" cols="30" rows="5">{$row.sqrjson|htmlentities}</textarea>
            </dl>


        </div>
    </div>
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl >
                <dd>
            
                </dd>
           
				{foreach name="row['ysjson']" item="vo"}
				<dd class="form-inline" disabled fieldlist-item="true" style="margin-top:5px">
				 
					{$vo.que}
						{foreach name="vo['ans']" item="vo1"}
						<dd class="form-inline" fieldlist-item="true" style="margin-top:2px">
						 
							<input type="text" disabled class="form-control" value="{$vo1.title}" placeholder="" size="10"> 
							 <input type="text" disabled class="form-control" value="{$vo1.value}" placeholder="" size="10"> 
						 
						</dd>
						{/foreach}	
				</dd>
				
				{/foreach}	
            </dl>


        </div>
    </div>
 
    
   <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Filesjson')}:</label>
        <div class="col-xs-12 col-sm-8">
          {$row.files}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quejson')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.questr}  
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('He_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-he_image" class="form-control" disabled size="50" name="row[he_image]" type="text" value="{$row.he_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-he_image" class="btn btn-danger faupload" data-input-id="c-he_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-he_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-he_image" class="btn btn-primary fachoose" data-input-id="c-he_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-he_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-he_image"></ul>
        </div>
    </div>
 
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('He_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-he_time" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[he_time]" type="text" value="{:$row.he_time?datetime($row.he_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('He_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-he_code" disabled class="form-control" step="0.01" name="row[he_code]" type="number" value="{$row.he_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Affair_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-affair_id" disabled data-rule="required" data-source="affair/index" class="form-control selectpage" name="row[affair_id]" type="text" value="{$row.affair_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qian_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qian_file" class="form-control" disabled size="50" name="row[qian_file]" type="text" value="/{$row.qian_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-qian_file" class="btn btn-danger faupload" data-input-id="c-qian_file" data-multiple="false" data-preview-id="p-qian_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-qian_file" class="btn btn-primary fachoose" data-input-id="c-qian_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-qian_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-qian_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}(仅更改状态为退回时需要填写):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[reason]" type="text" value="{$row.reason|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
